package com.ldc.service.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ldc.model.SysRole;

import java.util.List;

/**
 * 功能说明
 *
 * @auther liudc
 * @since 2023/6/12
 */
public interface RoleService extends IService<SysRole> {

    SysRole findBy(LambdaQueryWrapper<SysRole> queryWrapper);

    SysRole findByRoleId(long roleId);

    SysRole findByRole(String role);

    IPage<SysRole> findPageBy(IPage<SysRole> page, LambdaQueryWrapper<SysRole> queryWrapper);

    IPage<SysRole> findPageByPageQuery(long page, long offset, String query);

    List<SysRole> findListBy(LambdaQueryWrapper<SysRole> queryWrapper);

    List<Long> findRoleIdListByRoles(List<String> roleList);
}
